FROM zhu-ying-docker.pkg.coding.net/kszy/public/python:3.10-slim
ENV PYTHONIOENCODING=utf-8
USER root
RUN pip config set global.index-url https://pypi-1703563938750:504b6dbe8de1f29495ad7efc6012a42a08e9cb2b@zhu-ying-pypi.pkg.coding.net/kszy/pypi/simple
RUN sed -i 's/deb.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list.d/debian.sources
RUN pip install pysam==0.* polars==1.* cnvpytor==1.3.1 matplotlib==3.* openanno_cnv==0.* pydantic==2.* pyarmor==8.*
ADD clincnvseq/ /data/clincnvseq/
RUN cd /data && pyarmor gen -i -r -O dist clincnvseq
ADD setup.py setup.cfg /data/dist/
RUN cd /data/dist && pip3 install . && rm -rf /data